from django.db import models
# Create your models here.

class UserModel(models.Model):
    username = models.CharField(max_length=100,verbose_name='账户',unique=True)
    password = models.CharField(max_length=256,verbose_name='密码')
    role = models.SmallIntegerField(choices=((1,'管理员'),(2,'普通用户')))
    phoneNumber = models.CharField(max_length=11,verbose_name='手机号码',unique=True)
    realName = models.CharField(max_length=128,verbose_name='用户姓名')